From 08e2f958f001a79b5d722d56c48bd7ec77208efe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Thu, 7 May 2015 23:06:32 +0800 Subject: [PATCH] GtkWindow: Manually set CSD should enable shadow width calculation If CSD is enabled with shadow even though it "shouldn't"*, the width should still be calculated correctly. This fixes a regression caused by b1e5ad469c753ea3eed967056ca814ecb0117c7b. * gtk_window_should_use_csd () returns false https://bugzilla.gnome.org/show_bug.cgi?id=748615 --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2a85f1f245..2a05c832d6 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6542,7 +6542,7 @@ get_shadow_width (GtkWidget *widget, *shadow_width = border; if (!priv->decorated || - !gtk_window_should_use_csd (window) || + (!gtk_window_should_use_csd (window) && !priv->client_decorated) || !gtk_window_supports_client_shadow (window)) return; -- 2.30.2